{$header}
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading"> <strong>产品 {$_REQUEST.id|getModelName='Product'}</strong> 客户询盘历史 [ <a href="__APP__/Product">返回产品列表</a> ] 
  </h3>
<div id="result" class="result none"></div>
<ul id="myTab" class="nav nav-tabs">
	<li><a href="__URL__/edit/id/{$_REQUEST.id}">产品信息</a></li>
    <li><a href="__URL__/asksup/id/{$_REQUEST.id}">询价</a></li>
    <li><a href="__URL__/buy/id/{$_REQUEST.id}">采购</a></li>
    <li  class="active"><a href="#plist" data-toggle="tab">询盘</a></li>
    <li><a href="__URL__/order/id/{$_REQUEST.id}">销售</a></li>
</ul>
 <div id="myTabContent" class="tab-content">
            
	<div class="tab-pane fade in active" id="plist">
		<table class="table">
			<tr><th>编号</th><th>询盘单号</th> <th>规格</th><th>数量</th><th>单位</th><th>客户</th><th>创建时间</th><th>更新时间</th></tr>
			<volist name="products" id="ca">
				<tr>
				<td>{$ca.id}</td>
				<td>{$ca.mano}</td>
				<td>{$ca.specification}</td>
				<td>{$ca.number}</td>
				<td>{$ca.unit|getModelName='Unit'}</td>
				<td>{$ca.customer_id|getModelName='Customer'}</td>
				
				<td>{$ca.create_time|toDate}</td>
				<td>{$ca.update_time|toDate}</td>
			</tr>
			</volist>
		</table>
		<div class="page">{$page}</div>
	</div><!--profile-->

</div>
</div>
<include file="Public:footer" />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js"/>
<load href="__PUBLIC__/bootstrap/js/bootstrap-tab.js" />
<script type="text/javascript">
	function selProduct(id){
		if(id)
			 window.open(APP+'/Product/search?form=form1&supplier_id='+id,'selected','directorys=no,toolbar=no,status=no,menubar=no,resizable=yes,width=1000,height=800,top=100,left=120,scrollbars=yes');
		else
			alert("请选择供应商");
			return false;
	}

function addProduct(id){
		if(id)
			 location.href = APP+'/Product/add/supplier_id/'+id;
		else
			alert("请选择供应商");
			return false;
	}
</script>
